Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using lang8 source data for training and testing instead of preproces… #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

NaveenAri
Copy link

…sed data

TODO add instructions for or automatically download lang8 data

…sed data

TODO add instructions for or automatically download lang8 data
def process_data(lang8_path, split, dev_split_fract):
with open(pjoin(lang8_path, 'entries.%s' % split)) as fin:
lines = fin.read().strip().split('\n')
print('%d lines total in %s split' % (len(lines), args.split))
Copy link

@aBit19 aBit19 Apr 17, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The args variable is not defined in the process_data method, only in main.
see line 43. Apart from that the process_lang8.py seems to work just fine. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants